package com.zpark.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/model")
public class InSB {
    @GetMapping("/login")
    public ModelAndView test(){
        //创建视图解析器
        ModelAndView mv = new ModelAndView();
        //设置视图名字
        mv.setViewName("login");
        return mv;
    }
}


